package Banking;

public class Account {
    protected double balance;
    public Account(double init_balance) {
        balance =init_balance;
    }
    public double getBalance(){
        return balance;
    }
    public boolean desposit(double amt){
        balance+=amt;
        return true;
    }
    public boolean withdraw(double amt){
        if(balance<amt){
            return false;
        }
        balance-=amt;
        return true;
    }
}
